package com.foreveross.consumer;


import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class TestController {

    @Autowired
    private ProviderRemote providerRemote;


    @GetMapping("/learn")
    public String learn() {
        return "this is consumer1==>" + providerRemote.test();
    }

    @GetMapping("/test")
    public String test() {
        return "this is consumer1";
    }
}
